﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SofireCodeGenerator.Core
{
    public enum OracleObjectType
    {
        TABLE, VIEW
    }
    public class OracleObjectItem
    {
        private string _Name;
        public string Name
        {
            get
            {
                return this._Name;
            }
        }
        private OracleObjectType _Type;
        public OracleObjectType Type
        {
            get
            {
                return this._Type;
            }
        }

        public string TypeName
        {
            get
            {
                switch(this._Type)
                {
                    case OracleObjectType.VIEW:
                        return "VIEW";
                    default:
                        return "TABLE";
                }
            }
        }

        public OracleObjectItem(string name, OracleObjectType type)
        {
            this._Name = name;
            this._Type = type;
        }

        public override string ToString()
        {
            return this.TypeName + " - " + this._Name;
        }

    }
}
